package com.duda.cofig;


import com.duda.util.GetDownloadUrlForNT;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

import java.io.IOException;

//@Configuration      //1.主要用于标记配置类，兼备Component的效果。
//@EnableScheduling
public class NTLoginTask {

//    @Scheduled(cron = "0/5 * * * * ?")
    //或直接指定时间间隔，例如: 40
//    @Scheduled(fixedRate=1000*60*40)
    private void configureTasks() throws IOException {

        GetDownloadUrlForNT.LoginNT();
    }
}
